package com.example.demo.controller;

import com.example.demo.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Resource(name="userService")
    private UserService userService;
    public void save() {
        this.userService.save();
        System.out.println("执行UserController.save()");
    }

}
